// File_SWI.h: interface for the CFile_SWI class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_FILE_SWI_H__A204E388_F274_4B14_804C_BD1223FAC8BD__INCLUDED_)
#define AFX_FILE_SWI_H__A204E388_F274_4B14_804C_BD1223FAC8BD__INCLUDED_

#include "LABCollection_BPA.h"	// Added by ClassView
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "../../Include/Bse/File_BPA.h"
#include "../../Include/Dat/BusCollection_BPA.h"	// Added by ClassView
#include "../../Include/Bse/FileRowCollection.h"	// Added by ClassView
#include "MCFCollection_BPA.h"	// Added by ClassView
#include "MCollection_BPA.h"	// Added by ClassView
#include "LNCollection_BPA.h"	// Added by ClassView
#include "EA_KCollection_BPA.h"
#include "FA_LCollection_BPA.h"	// Added by ClassView
#include "FM_VCollection_BPA.h"
#include "FpCollection_BPA.h"	// Added by ClassView
#include "FsharpCollection_BPA.h"
#include "FXCollection_BPA.h"
#include "FZCollection_BPA.h"	// Added by ClassView
#include "GACollection_BPA.h"
#include "GJCollection_BPA.h"
#include "GSCollection_BPA.h"
#include "SFPSGCollection_BPA.h"
#include "SACollection_BPA.h"
#include "SBCollection_BPA.h"
#include "SBpCollection_BPA.h"
#include "SICollection_BPA.h"
#include "SIpCollection_BPA.h"
#include "SHCollection_BPA.h"
#include "SHpCollection_BPA.h"
#include "TBCollection_BPA.h"
#include "LS123Collection_BPA.h"	// Added by ClassView

class BPAFILEDLL_API CFile_SWI : public CFile_BPA  
{
public:
	CFile_SWI();
	virtual ~CFile_SWI();

	bool FillAllCards();
	bool UpdateAllCards();

	bool OutputToMatFile(char *strFileName, CBusCollection_BPA& refBuses);

protected:
	void InitiateDatarows();
	void DetachAllCards();
	bool LoadEx(FILE* pFile);
	bool SaveEx(FILE* pFile);

public:
	CLNCollection_BPA m_lns;
	CMCollection_BPA m_ms;
	CMCFCollection_BPA m_mcfs;
	CLABCollection_BPA m_labs;
	CEA_KCollection_BPA m_eaks;
	CFA_LCollection_BPA m_fals;
	CFM_VCollection_BPA m_fmvs;
	CFpCollection_BPA m_fps;
	CFsharpCollection_BPA m_fsharps;
	CFXCollection_BPA m_fxs;
	CFZCollection_BPA m_fzs;
	CGACollection_BPA m_gas;
	CGJCollection_BPA m_gjs;
	CGSCollection_BPA m_gss;
	CSFPSGCollection_BPA m_sfpsgs;
	CSACollection_BPA m_sas;
	CSBCollection_BPA m_sbs;
	CSBpCollection_BPA m_sbps;
	CSICollection_BPA m_sis;
	CSIpCollection_BPA m_sips;
	CSHCollection_BPA m_shs;
	CSHpCollection_BPA m_shps;
	CTBCollection_BPA m_tbs;
	CLS123Collection_BPA m_ls123s;

public:
	CFileRowCollection m_rsHeaderField;
	CFileRowCollection m_rsDynamicElementField;
	CFileRowCollection m_rsStaticElementField;
	CFileRowCollection m_rsOutputField;	

};

#endif // !defined(AFX_FILE_SWI_H__A204E388_F274_4B14_804C_BD1223FAC8BD__INCLUDED_)
